package main

import "fmt"

func main() {

	test("1")
}

func test(name string) (string, error) {
	defer func() {
		fmt.Println("defer1...")
	}()

	if name == "1" {
		return "", fmt.Errorf("error")
	}

	return "hello", nil
}
